/**
 * 
 */
package edu.sjtu.context.core;

/**
 * @author Roger
 *
 */
public class ContextMessage {
	/**
	 * the name of context
	 */
	private String contextName;
	/**
	 * the value of the context
	 */
	private String contextValue;
	/**
	 * the name of the class which individual will be set to keep the transformed context.
	 */
	private String className;
	
	/**
	 * Constructor.
	 * @param ontName
	 * @param className
	 * @param contextName
	 * @param contextValue
	 */
	public ContextMessage(String className, 
			String contextName, String contextValue){
		this.className = className;
		this.contextName = contextName;
		this.contextValue = contextValue;
	}
	
	/**
	 * Return a formatted message based on the attributes.
	 * The format is: Ontology_Name/Class_Name/Context_Name=Context_Value
	 * @return
	 * 		The formatted context message.
	 */
	public String getMessage(){
		return this.className + 
		"/" + this.contextName + "=" + this.contextValue;
	}
}
